package com.mixed.db;

import java.util.List;

public class PageResult<T> {
	
	private int newCurrentPage ;
	private int pageSize;
	private List<T> list;
	private int count;

	public PageResult(int newCurrentPage, int pageSize, List<T> list, int count) {
		this.setNewCurrentPage(newCurrentPage);
		this.setPageSize(pageSize);
		this.setList(list);
		this.setCount(count);
	}

	public void setNewCurrentPage(int newCurrentPage) {
		this.newCurrentPage = newCurrentPage;
	}

	public int getNewCurrentPage() {
		return newCurrentPage;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}

	public int getPageSize() {
		return pageSize;
	}

	public void setList(List<T> list) {
		this.list = list;
	}

	public List<T> getList() {
		return list;
	}

	public void setCount(int count) {
		this.count = count;
	}

	public int getCount() {
		return count;
	}

}
